Optimal. Leaf size=89 \[ -\frac{c^2 \tan (e+f x) (a \sec (e+f x)+a)^{3/2}}{3 f \sqrt{c-c \sec (e+f x)}}-\frac{c \tan (e+f x) (a \sec (e+f x)+a)^{3/2} \sqrt{c-c \sec (e+f x)}}{3 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.274389, antiderivative size = 89, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 36, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.056, Rules used = {3955, 3953} \[ -\frac{c^2 \tan (e+f x) (a \sec (e+f x)+a)^{3/2}}{3 f \sqrt{c-c \sec (e+f x)}}-\frac{c \tan (e+f x) (a \sec (e+f x)+a)^{3/2} \sqrt{c-c \sec (e+f x)}}{3 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3955
Rule 3953
Rubi steps
\begin{align*} \int \sec (e+f x) (a+a \sec (e+f x))^{3/2} (c-c \sec (e+f x))^{3/2} \, dx &=-\frac{c (a+a \sec (e+f x))^{3/2} \sqrt{c-c \sec (e+f x)} \tan (e+f x)}{3 f}+\frac{1}{3} (2 c) \int \sec (e+f x) (a+a \sec (e+f x))^{3/2} \sqrt{c-c \sec (e+f x)} \, dx\\ &=-\frac{c^2 (a+a \sec (e+f x))^{3/2} \tan (e+f x)}{3 f \sqrt{c-c \sec (e+f x)}}-\frac{c (a+a \sec (e+f x))^{3/2} \sqrt{c-c \sec (e+f x)} \tan (e+f x)}{3 f}\\ \end{align*}
Mathematica [A] time = 0.430983, size = 78, normalized size = 0.88 \[ \frac{a c (3 \cos (2 (e+f x))+1) \csc \left (\frac{1}{2} (e+f x)\right ) \sec \left (\frac{1}{2} (e+f x)\right ) \sec ^2(e+f x) \sqrt{a (\sec (e+f x)+1)} \sqrt{c-c \sec (e+f x)}}{12 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.27, size = 83, normalized size = 0.9 \begin{align*}{\frac{a \left ( \sin \left ( fx+e \right ) \right ) ^{3} \left ( 2\,\cos \left ( fx+e \right ) -1 \right ) }{3\,f \left ( -1+\cos \left ( fx+e \right ) \right ) ^{3}\cos \left ( fx+e \right ) } \left ({\frac{c \left ( -1+\cos \left ( fx+e \right ) \right ) }{\cos \left ( fx+e \right ) }} \right ) ^{{\frac{3}{2}}}\sqrt{{\frac{a \left ( 1+\cos \left ( fx+e \right ) \right ) }{\cos \left ( fx+e \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.84834, size = 743, normalized size = 8.35 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.471238, size = 197, normalized size = 2.21 \begin{align*} \frac{{\left (3 \, a c \cos \left (f x + e\right )^{2} - a c\right )} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sqrt{\frac{c \cos \left (f x + e\right ) - c}{\cos \left (f x + e\right )}}}{3 \, f \cos \left (f x + e\right )^{2} \sin \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]